import requests

from com.yh.oa.api.user import User


class TestParent():

    @classmethod
    def setup_class(cls):
        cls.session = requests.Session()
        user = User()
        resp = user.login("admin", "admin123")
        cls.token = {"authorization":"Bearer {}".format(resp.json()["data"]["token"])}